<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Shop_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-shop_id" data-rule="required" data-source="shop/index" class="form-control selectpage" name="row[shop_id]" type="text" value="{$row.shop_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_id" data-rule="required" data-source="user/user/index" data-field="nickname" class="form-control selectpage" name="row[user_id]" type="text" value="{$row.user_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Goods_category_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-goods_category_id" data-rule="required" data-source="goods/category/index" class="form-control selectpage" name="row[goods_category_id]" type="text" value="{$row.goods_category_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Profile')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-profile" data-rule="required" class="form-control" size="50" name="row[profile]" type="text" value="{$row.profile|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-profile" class="btn btn-danger faupload" data-input-id="c-profile" data-multiple="false" data-preview-id="p-profile"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-profile" class="btn btn-primary fachoose" data-input-id="c-profile" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-profile"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-profile"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Goods_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-goods_name" data-rule="required" class="form-control" name="row[goods_name]" type="text" value="{$row.goods_name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Use_people_type')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-use_people_type" data-rule="required" class="form-control" name="row[use_people_type]" type="number" value="{$row.use_people_type|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Start_use_people')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-start_use_people" data-rule="required" class="form-control" name="row[start_use_people]" type="number" value="{$row.start_use_people|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('End_use_people')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-end_use_people" data-rule="required" class="form-control" name="row[end_use_people]" type="number" value="{$row.end_use_people|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Images')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-images" data-rule="required" class="form-control" size="50" name="row[images]" type="text" value="{$row.images|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-images" class="btn btn-danger faupload" data-input-id="c-images" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="true" data-preview-id="p-images"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-images" class="btn btn-primary fachoose" data-input-id="c-images" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-images"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-images"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Sku')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sku" data-rule="required" class="form-control" name="row[sku]" type="text" value="{$row.sku|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Detail')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-detail" data-rule="required" class="form-control" name="row[detail]" type="text" value="{$row.detail|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Stock_type')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-stock_type" data-rule="required" class="form-control" name="row[stock_type]" type="number" value="{$row.stock_type|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Stock')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-stock" data-rule="required" class="form-control" name="row[stock]" type="number" value="{$row.stock|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Every_stock_type')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-every_stock_type" data-rule="required" class="form-control" name="row[every_stock_type]" type="number" value="{$row.every_stock_type|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Every_stock')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-every_stock" data-rule="required" class="form-control" name="row[every_stock]" type="number" value="{$row.every_stock|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Everyone_everyday_buy_type')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-everyone_everyday_buy_type" data-rule="required" class="form-control" name="row[everyone_everyday_buy_type]" type="number" value="{$row.everyone_everyday_buy_type|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Everyone_everyday_buy')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-everyone_everyday_buy" data-rule="required" class="form-control" name="row[everyone_everyday_buy]" type="number" value="{$row.everyone_everyday_buy|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Start_sell_time_type')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-start_sell_time_type" data-rule="required" class="form-control" name="row[start_sell_time_type]" type="number" value="{$row.start_sell_time_type|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Start_sell_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-start_sell_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[start_sell_time]" type="text" value="{:$row.start_sell_time?datetime($row.start_sell_time):''}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('End_sell_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-end_sell_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[end_sell_time]" type="text" value="{:$row.end_sell_time?datetime($row.end_sell_time):''}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Auto_continue_sell')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-auto_continue_sell" data-rule="required" class="form-control" name="row[auto_continue_sell]" type="number" value="{$row.auto_continue_sell|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Start_may_use_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-start_may_use_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[start_may_use_time]" type="text" value="{:$row.start_may_use_time?datetime($row.start_may_use_time):''}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('End_may_use_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-end_may_use_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[end_may_use_time]" type="text" value="{:$row.end_may_use_time?datetime($row.end_may_use_time):''}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('May_use_time_type')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-may_use_time_type" data-rule="required" class="form-control" name="row[may_use_time_type]" type="number" value="{$row.may_use_time_type|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('May_use_time_day')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-may_use_time_day" data-rule="required" class="form-control" name="row[may_use_time_day]" type="number" value="{$row.may_use_time_day|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Use_date_type')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-use_date_type" data-rule="required" class="form-control" name="row[use_date_type]" type="number" value="{$row.use_date_type|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Use_date')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-use_date" data-rule="required" class="form-control" name="row[use_date]" type="text" value="{$row.use_date|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Use_time_type')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-use_time_type" data-rule="required" class="form-control" name="row[use_time_type]" type="number" value="{$row.use_time_type|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Start_use_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-start_use_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[start_use_time]" type="text" value="{:$row.start_use_time?datetime($row.start_use_time):''}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('End_use_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-end_use_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[end_use_time]" type="text" value="{:$row.end_use_time?datetime($row.end_use_time):''}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Subscribe_type')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-subscribe_type" data-rule="required" class="form-control" name="row[subscribe_type]" type="number" value="{$row.subscribe_type|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Subscribe_hour')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-subscribe_hour" data-rule="required" class="form-control" name="row[subscribe_hour]" type="number" value="{$row.subscribe_hour|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Coupon_limited')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-coupon_limited" data-rule="required" class="form-control" name="row[coupon_limited]" type="number" value="{$row.coupon_limited|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Limited_num')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-limited_num" data-rule="required" class="form-control" name="row[limited_num]" type="number" value="{$row.limited_num|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Meal')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-meal" data-rule="required" class="form-control" name="row[meal]" type="text" value="{$row.meal|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Privateroom_type')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-privateroom_type" data-rule="required" class="form-control" name="row[privateroom_type]" type="number" value="{$row.privateroom_type|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Enjoy_preferential_type')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-enjoy_preferential_type" data-rule="required" class="form-control" name="row[enjoy_preferential_type]" type="number" value="{$row.enjoy_preferential_type|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Other_rule')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-other_rule" data-rule="required" class="form-control" name="row[other_rule]" type="text" value="{$row.other_rule|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-price" data-rule="required" class="form-control" step="0.01" name="row[price]" type="number" value="{$row.price|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Commission_rate')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-commission_rate" data-rule="required" class="form-control" step="0.01" name="row[commission_rate]" type="number" value="{$row.commission_rate|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Goods_state')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-goods_state" data-rule="required" class="form-control" name="row[goods_state]" type="number" value="{$row.goods_state|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Sales')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sales" data-rule="required" class="form-control" name="row[sales]" type="number" value="{$row.sales|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Sale_price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sale_price" data-rule="required" class="form-control" step="0.01" name="row[sale_price]" type="number" value="{$row.sale_price|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Verify_num')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-verify_num" data-rule="required" class="form-control" name="row[verify_num]" type="number" value="{$row.verify_num|htmlentities}">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
